let width;
    export default class RepeatingBg extends Laya.Script {
    constructor() { 
        super(); 
        /** @prop {name:intType, tips:"整数类型示例", type:Int, default:1000}*/
        let intType = 1000;
        // 更多参数说明请访问: https://ldc2.layabox.com/doc/?nav=zh-as-2-4-0
    }
    
    onAwake(){
        width=this.owner.width;
    }
    onUpdate(){
        if(this.owner.x<=-width){
            this.owner.x+=width*2;
        }
    }
}